package com.project.lx.gettxtfilename.Receiver;

import android.os.Bundle;

import com.project.lx.baseproject.base.BaseActivity;
import com.project.lx.baseproject.widget.NetworkChangeReceiver;
import com.project.lx.gettxtfilename.R;

public class ReceiverActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        registerReceiver(NetworkChangeReceiver.getInstance(), NetworkChangeReceiver.addAction("android.net.conn.CONNECTIVITY_CHANGE"));
    }

    @Override
    public void initRootView() {
        setContentView(R.layout.activity_receiver);
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
    }

    @Override
    public void initListener() {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unregisterReceiver(NetworkChangeReceiver.getInstance());
    }
}
